package cz.cvut.fel.omo.client;

import cz.cvut.fel.omo.Observer;

public class BitcoinClient implements Observer{

    StockExchangeClient context;

    public BitcoinClient(StockExchangeClient context) {
        this.context = context;
    }

    // IMPLEMENT ME
        // This class should implement observer interface.
        // On update the class should print name of context class and current price of bitcoin.
    public void update(){
        System.out.println("Current price of "+context.getName()+ " is "+context.getServer().getBitcoinState());
    
    }
}
